<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*,cn.edu.lingnan.dto.*" %>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>修改任务信息页面</title>
</head>
<body>
	<h1>任务信息展示如下</h1>
<form action="UpdateMission">
<table border="1" cellspacing="0" align="center">
	<tr>
		<td></td>
		<td>导游编号</td>
		<td>景点名称</td>
		<td></td>
	</tr>	
	<%
	System.out.println("UpdateMission.jsp顺序");
	Vector<MissionDTO> v=(Vector<MissionDTO>)session.getAttribute("AllMissionInfo");//FindAllMissionServlet里set好了
	String gno=request.getParameter("gno");
	String pname=request.getParameter("pname");//括号里pname是在findallmission.jsp读的参数
	Iterator<MissionDTO> it=v.iterator();	
	MissionDTO mission=null;
	while(it.hasNext()){
		mission=it.next();
		if(mission.getM_no().equals(gno)&&mission.getP_name().equals(pname)){
	%>
		<tr>
		<td></td>
		<td><input type="hidden" name="gno" value=<%=mission.getM_no()%>><%=mission.getM_no()%></td>
		<td><input type="text" name="pname" value=<%=mission.getP_name()%>></td>
		<td>
		<input type="submit" value="确认修改">		 
		</tr>	
	<% 
		}
	}	
	%>
</table>
</form>
</body>
</html>